package org.jeecg.modules.electricity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.electricity.entity.LwgyJointElectricity;
import org.jeecg.modules.electricity.mapper.LwgyJointElectricityMapper;
import org.jeecg.modules.electricity.service.ILwgyJointElectricityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


/**
 * @Description: 电控管理
 * @Author: jeecg-boot
 * @Date:   2022-06-13
 * @Version: V1.0
 */
@Service
public class LwgyJointElectricityServiceImpl extends ServiceImpl<LwgyJointElectricityMapper, LwgyJointElectricity> implements ILwgyJointElectricityService {
    @Autowired
    private LwgyJointElectricityMapper lwgyJointElectricityMapper;

    public IPage<LwgyJointElectricity> sqlServerPage(Page page, QueryWrapper queryWrapper) {
        return lwgyJointElectricityMapper.sqlServerPage(page, queryWrapper);
    }

    @Override
    public void updateEleState(LwgyJointElectricity lwgyJointElectricity){
        lwgyJointElectricityMapper.updateEleState(lwgyJointElectricity);
    }
}
